package com.zh.domain.dto.user;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.zh.constant.UserConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 用户创建请求
 */
@Data
@ApiModel(value = "UserAddRequest", description = "仅超管/管理（团队长)可创建,且团队长仅可在本团队创建")
public class UserAddRequest implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "团队id,当团队长创建时必传")
    private Integer teamId;
    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名")
    private String username;
    @ApiModelProperty(value = "昵称,默认同姓名")
    private String nickname;
    @ApiModelProperty(value = "姓名,创建时必传")
    private String name;
    /**
     * 用户头像
     */
    @ApiModelProperty(value = "用户头像,为传入采用默认", hidden = true)
    private String avatar = UserConstant.DEFAULT_AVATAR;

    /**
     * 用户角色: user, admin
     */
    @ApiModelProperty(value = "用户角色默认为user", hidden = true)
    private List<String> roles = List.of(UserConstant.USER);
}